package com.wgt.upload.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wgt
 * @date 2018/1/10
 * @project fastdfs-server
 */
@Component
@ConfigurationProperties(prefix = "file-config")
public class FileConfigBean {

    @Value(value = "server-ip")
    private String serverIp;

    @Value(value = "port")
    private String port = "80";

    @Value(value = "file_root_path")
    private String fileRootPath ;

    public FileConfigBean() {
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getFileRootPath() {
        return fileRootPath;
    }

    public void setFileRootPath(String fileRootPath) {
        this.fileRootPath = fileRootPath;
    }

    @Override
    public String toString() {
        return "FileConfigBean{" +
                "serverIp='" + serverIp + '\'' +
                ", port='" + port + '\'' +
                ", fileRootPath='" + fileRootPath + '\'' +
                '}';
    }
}
